/*
 * Copyright (c) 2016 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao;

import java.util.List;
import java.util.Map;

import com.smarthome.base.dao.base.BaseDao;
import com.smarthome.domain.bean.ShOrders;

/**
 * ShOrdersDao 接口
 * 
 * @author Kongxiangyu
 * @since 2016-03-20
 */
public interface ShOrdersDao extends BaseDao<ShOrders, Long> {
	// 自定义扩展

	/**
	 * 得到count数据
	 * 
	 * @param ShOrders
	 * @author shazhichao
	 * @return
	 */
	Integer queryShOrderCount(ShOrders shOrders);

	/**
	 * 得到订单信息--翻页
	 * 
	 * @param ShOrders
	 * @author shazhichao
	 * @return
	 */
	List<ShOrders> queryShOrdersListPage(ShOrders shOrders);

	
	/**
	 * 得到订单list信息
	 * @param shOrders
	 * @return
	 */
	List<ShOrders> queryShOrdersList(ShOrders shOrders);
	
	
	/**
	 * 更新
	 * 
	 * @param shOrders
	 * @author shazhichao
	 * @return
	 */
	int batchUpdate(ShOrders shOrders);

	/**
	 * 
	 * @Title: getDetailById
	 * @Description: 通过获取详情
	 * @param id
	 * @return ShOrders
	 * @throws
	 */
	public ShOrders getDetailById(Long id);

	/**
	 * 获取订单统计的数量和费用合计
	 * 
	 * @param shOrders
	 * @return
	 */
	Map<String, Object> getCountAll(ShOrders shOrders);

	
}